package com.yuexun.dhdoctor.module.meeting.bean;

/**
 * Created by work-jx on 2016/11/15.
 */
public enum  MeetingSignStateEnum {
    NO_SIGN("未签到"),
    SIGN_IN("已签到"),
    MEETING_OUT_OF_DATE("会议过期");

    private String description;

    MeetingSignStateEnum(String description) {
        this.description = description;
    }

    public static MeetingSignStateEnum valueOf(int value) {
        if(value < 0 || value >= values().length) {
            return getDefault();
        }

        return values()[value];
    }

    public static MeetingSignStateEnum getDefault() {
        return NO_SIGN;
    }

    public String getDescription() {
        return description;
    }
}
